<template>
  <div class="q-pa-md row items-start q-gutter-md">
    <t-card class="my-card bg-secondary text-white">
      <t-card-section>
        <div class="text-h6">Our Changing Planet</div>
        <div class="text-subtitle2">by John Doe</div>
      </t-card-section>

      <t-card-section>
        {{ lorem }}
      </t-card-section>

      <t-separator dark />

      <t-card-actions>
        <t-btn flat>Action 1</t-btn>
        <t-btn flat>Action 2</t-btn>
      </t-card-actions>
    </t-card>

    <t-card class="my-card">
      <t-card-section>
        <div class="text-h6">Our Changing Planet</div>
        <div class="text-subtitle2">by John Doe</div>
      </t-card-section>

      <t-separator />

      <t-card-actions vertical>
        <t-btn flat>Action 1</t-btn>
        <t-btn flat>Action 2</t-btn>
      </t-card-actions>
    </t-card>

    <t-card class="my-card bg-purple text-white">
      <t-card-section>
        <div class="text-h6">Our Changing Planet</div>
        <div class="text-subtitle2">by John Doe</div>
      </t-card-section>

      <t-card-actions>
        <t-btn flat>Action 1</t-btn>
        <t-btn flat>Action 2</t-btn>
      </t-card-actions>
    </t-card>

    <t-card
      flat
      bordered
      class="my-card"
      :class="$q.dark.isActive ? 'bg-grey-9' : 'bg-grey-2'"
    >
      <t-card-section>
        <div class="row items-center no-wrap">
          <div class="col">
            <div class="text-h6">Our Planet</div>
            <div class="text-subtitle2">by John Doe</div>
          </div>

          <div class="col-auto">
            <t-btn color="grey-7" round flat icon="more_vert">
              <t-menu cover auto-close>
                <t-list>
                  <t-item clickable>
                    <t-item-section>Remove Card</t-item-section>
                  </t-item>
                  <t-item clickable>
                    <t-item-section>Send Feedback</t-item-section>
                  </t-item>
                  <t-item clickable>
                    <t-item-section>Share</t-item-section>
                  </t-item>
                </t-list>
              </t-menu>
            </t-btn>
          </div>
        </div>
      </t-card-section>

      <t-card-section>
        {{ lorem }}
      </t-card-section>

      <t-separator />

      <t-card-actions>
        <t-btn flat>Action 1</t-btn>
        <t-btn flat>Action 2</t-btn>
      </t-card-actions>
    </t-card>
  </div>
</template>

<script>
  export default {
    setup() {
      return {
        lorem:
          'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
      };
    },
  };
</script>

<style lang="sass" scoped>
.my-card
  width: 100%
  max-width: 250px
</style>
